<div class="pagetitle">
	<h1>Danh sách người dùng đã nhận quà</h1> <span></span>
</div>
<div class="maincontent">
    <div class="contentinner">    
    
        <?php $attr = array('class' => 'stdform','id' => 'form-list'); echo form_open('', $attr);?>
        <div id="dyntable_length" class="dataTables_length  content-dashboard">
        <input type="hidden" name="check-delete" value="1" />
        
            <a href="<?php echo $baseurl.'manage/campaign/add-user-code'?>" class="btn"><i class="icon-plus"></i> Thêm mới</a>
            <!-- <button class="btn" type="button" onclick="deleteall()"><i class="icon-remove"></i> Xóa đã chọn</button> -->
        </div>
    	<table class="table table-bordered">
            <colgroup>
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
                <col class="con0" />
                <col class="con1" />
            </colgroup>
            <thead>
                <tr>
                	<th class="centeralign" style="width: 5%;"><input type="checkbox" class="checkall" /></th>
                    <!-- <th style="width: 8%;">STT</th> -->
                    <th>Thành viên</th>
                    <th>Mã quà tặng</th>
					<th>Thời gian sử dụng</th>
                    <th>Tác vụ</th>
                    <!--
                    <th class="centeralign" style="width: 10%">Tác vụ</th>-->
                </tr>
            </thead>
            <tbody>
            <?php if(!in_array($data, array(null, '', '0'))):?>
            <?php foreach($data AS $el=>$le):?>
                <tr>
                	<td class="centeralign"><input name="checkboxs[]" id="<?php echo $le->id?>" type="checkbox" value="<?php echo $le->id?>" /></td>
                    <!-- <td>1</td> -->
                    <td><a href="<?php echo $baseurl.'manage/member/edit-member/'.$le->mid?>"><?php echo $le->username?></a></td>
                    <td><a href="<?php echo $baseurl.'manage/campaign/view-user-code/'.$le->id?>"><?php echo $le->code_user?></a></td>
                    <td><?php echo $le->created;?></td>
					 <td><a href="<?php echo $baseurl;?>manage/campaign/view-user-code/<?php echo $le->id;?>">Xem chi tiết</a></td>
                </tr>
            <?php endforeach;?>
            <?php endif?>
            </tbody>
        </table>
        <div class="dataTables_info" id="dyntable_info">
            <div class="pagination">
                <?php echo $this->pagination->create_links();?> 
            </div>
        </div>
        </form>
    </div>
</div>
<style>
.table th, .table td {
vertical-align: middle !important;
}
</style>